//
//  BAXDetailVC.m
//  bianxiong
//
//  Created by Apple on 16/8/4.
//  Copyright © 2016年 CJ. All rights reserved.
//

#import "BAXDetailVC.h"
#import "BAXSubTableView.h"
#import "PoolCommentTableView.h"
#import "PoolCancelTableView.h"
#import "LXWaitUseTableView.h"

@interface BAXDetailVC ()

@end

@implementation BAXDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"拼车订单";


    //设置自定义属性
    self.tagItemSize = CGSizeMake(ScreenWidth/4, 49);

//        self.selectedIndicatorSize = CGSizeMake(30, 8);
    self.selectedTitleColor = LXHexColor(0x5DCA68);
    self.selectedIndicatorColor = LXHexColor(0x5DCA68);
//        self.selectedTitleFont = [UIFont systemFontOfSize:18];
//
//        self.graceTime = 15;
//        self.gapAnimated = YES;

    self.backgroundColor = [UIColor whiteColor];

    NSArray *titleArray = @[
                            @"待付款",
                            @"待使用",
                            @"待评价",
                            @"已取消"
                            ];





    NSArray *classNames = @[
                            [BAXSubTableView class],
                            [LXWaitUseTableView class],
                            [PoolCommentTableView class],
                            [PoolCancelTableView class]
                            ];


    NSArray *params = nil;



    [self reloadDataWith:titleArray andSubViewdisplayClasses:classNames withParams:params];


}



//重载init方法
- (instancetype)init
{
    if (self = [super initWithTagViewHeight:49])
    {

    }
    return self;
}


- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
    self.tabBarController.tabBar.hidden=YES;
    [self selectTagByIndex:0 animated:YES];
    
}



@end
